package game.messages.login
{
	import engine.network.*;
	import flash.utils.*;
	
	public class RxLogin_LoginPlayerMessage extends RxNetMessageBase
	{
		public var flags:uint = 0;
		public var network:String;
		public var userName:String;
		public var authToken:String;
		public var clientInfo:Vector.<RxLogin_ClientInfo>;
		public static const FLAG_HARDWARE_GRAPHICS_ACCELERATION:uint = 1;
		public static const messageId:int = 62467;
		public static const fixedSize:Boolean = false;
		
		public function RxLogin_LoginPlayerMessage()
		{
			this.clientInfo = new Vector.<RxLogin_ClientInfo>;
		}
		
		override public function GetBinarySize(param1:Number) : int
		{
			return GetSize_String(this.network) + GetSize_String(this.userName) + GetSize_String(this.authToken) + GetSize_object_array(this.clientInfo, RxLogin_ClientInfo, param1) + 1;
		}
		
		override public function GetId() : int
		{
			return messageId;
		}
		
		override public function IsFixedSize() : Boolean
		{
			return false;
		}
		
		override public function ToBinary(param1:ByteArray, param2:Number) : void
		{
			Write_String(param1, this.authToken);
			Write_object_array(param1, this.clientInfo, RxLogin_ClientInfo, param2);
			Write_uint8(param1, this.flags);
			Write_String(param1, this.network);
			Write_String(param1, this.userName);

		}
		
		override public function FromBinary(param1:ByteArray, param2:Number) : void
		{
			this.authToken = Read_String(param1);
			Read_object_array(param1, this.clientInfo, RxLogin_ClientInfo, param2);
			this.flags = Read_uint8(param1);
			this.network = Read_String(param1);
			this.userName = Read_String(param1);

		}
	}
}